Release 10.1A: OpenEdge Development:
ProDataSets
Passing a ProDataSet parameter by binding
You can also save the overhead of copying a ProDataSet’s definition and data on a local call by using the
BINDkeyword. Passing a ProDataSet to a local routine using theBINDkeyword allows the calling routine and the called routine to access the same ProDataSet instance by:In the static case, you must define a reference-only ProDataSet in either the calling routine or the called routine by specifying the
REFERENCE-ONLYkeyword in theDEFINEstatement for the ProDataSet.You use the
BINDkeyword in both the calling and called routines to tell Progress to bind both ProDataSet references to the same ProDataSet instance. In the calling routine, you add the keyword to the parameter in theRUNstatement, as shown:
In the called routine, you specify the keyword as part of the parameter definition:
When you pass a ProDataSet parameter to a local routine using the
BINDkeyword, you can define a reference-only ProDataSet object in either the calling routine or the called routine. In either case, the reference-only object definition remains bound to the object instance until the routine containing the reference-only object definition is deleted or terminates.The most basic case where you would want to use the
BINDkeyword is when you want to use the called routine’s ProDataSet instance instead of the calling routine’s instance.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |